package com.allinpay.route.controller;

import com.allinpay.route.SignService;
import com.allinpay.until.requestModel.TpReq;
import com.allinpay.until.responseModel.TpRet;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@Slf4j
@RestController
@RequestMapping("/sign")
public class RouteController {

    @Autowired
    private SignService signService;

    @RequestMapping(value = "beSign", method = RequestMethod.POST)
    public TpRet sign(@RequestBody TpReq tpReq) {
        log.info("进入路由前置:签约名{}", tpReq);
        TpRet sign = signService.sign(tpReq);
        return sign;
    }
}
